package com.gk.springauth2auth.service.impl;

import com.gk.springauth2auth.dao.RoleMapper;
import com.gk.springauth2auth.entity.RoleDO;
import com.gk.springauth2auth.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 角色接口服务实现类
 * @Author: poison
 * @Date: 2020/10/18 0:27
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public RoleDO loadRoleByUserId(int UserId) {
        return roleMapper.loadRoleByUserId(UserId);
    }
}
